﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for MerchantCarDriver
/// </summary>
namespace CE.CarInsurance
{
    public class MerchantCarDriver
    {
        private Int64 _cardriverid;
        private Int64 _carid;
        private Int64 _refceuserid;
        private Int64 _agentid;
        private string _fullname;
        private DateTime _dob;
        private string _idno;
        private string _drivinglicensenumber;
        private bool _status;

        public MerchantCarDriver()
        {
            ClearFields();
        }

        public Int64 CarDriverId
        {
            get { return _cardriverid; }
            set { _cardriverid = value; }
        }

        public Int64 CarId
        {
            get { return _carid; }
            set { _carid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 AgentId
        {
            get { return _agentid; }
            set { _agentid = value; }
        }

        public string FullName
        {
            get { return _fullname; }
            set { _fullname = value; }
        }

        public DateTime DOB
        {
            get { return _dob; }
            set { _dob = value; }
        }

        public string IDNo
        {
            get { return _idno; }
            set { _idno = value; }
        }

        public string DrivingLicenseNumber
        {
            get { return _drivinglicensenumber; }
            set { _drivinglicensenumber = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public void ClearFields()
        {
            _cardriverid = 0;
            _carid = 0;
            _refceuserid = 0;
            _agentid = 0;
            _fullname = "";
            _dob = CE.Global.General.GetUTCDateTime(); //DateTime.Now;
            _idno = "";
            _drivinglicensenumber = "";
            _status = false;
        }
    }
}
